package com.plan.controller;

import com.plan.service.IfElseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: admin
 * @time: 2022/12/8 22:28
 */
@RestController
@RequestMapping("/api/IfElse")
public class IfElseController {

    @Autowired
    private IfElseService ifElseService;

    @GetMapping("/demoIfElse")
    public void demoIfElse(@RequestParam("name") String name){
        ifElseService.IfElseDemo(name);
    }

    @GetMapping("/IfElseDemo01")
    public void IfElseDemo01(@RequestParam("name") String name){
        ifElseService.IfElseDemo01(name);
    }
}
